<%@ include file="/common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<center>
<div class="maintable"><br>
<div class="subtable nav" style="width: 100%">
<a href="index.php">外地人在北京</a> &raquo; 短消息
</div><br>

<table cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
<tr><td  valign="top">
<jsp:include page="/common/leftMenu.jsp"/>
</td>
 <td valign="top">
<s:form action="/message/message.do" id="demo" method="post">
<input type="hidden" name="formhash" value="315d522d">
<div class="spaceborder" style="width: 100%">
<table cellspacing="0" cellpadding="5" width="100%">
<tr>
<td width="100%" colspan="2" class="header"><a href="member.php?action=credits&amp;view=pm" target="_blank"><img src="http://images.5d6d.com/cusimg/ea/redstone/X3nh3gor/credits.gif" alt="查看积分策略说明" align="right" border="0" /></a>发送短消息</td>
</tr>
<tr><td class="altbg1" width="18%"><span class="bold">发送到</span></td>
<td class="altbg2" width="82%"><s:text name="receiveNickName" class="reginput" id="receiveNickName" value="${receiveUser.nickname}" size="50" /></td></tr>
<tr>
<td class="altbg1"><span class="bold">标题</span></td>
<td class="altbg2"><s:text name="message.title" class="{dataType:Require;msg:标题不能为空}" id="title" size="50"/>
                    <s:errors field="message.title"/></td>
</tr>

<tr class="bottom">
<td valign="top" class="altbg1"><span class="bold">内容</span><br><br>
</td>
<td class="altbg2"><s:textarea name="message.content" cols="50" rows="7" style="height:134px" id="content" class="{dataType:Require;msg:内容不能为空}"/>
                    <s:errors field="message.content"/><br><span class="smalltxt"><s:checkbox name="message.type" value="-1"/>不发送，只保存到草稿箱中 &nbsp; [完成后可按 Ctrl+Enter 发布]</span>
</td>
</tr>
</table></div><br>
     <s:hidden name="message.receiveUserId" value="${receiveUser.id}"/>
                  <s:hidden name="message.receiveNickName" value="${receiveUser.nickname}"/>
                  <s:hidden name="message.type" value="${type}"/>
<div class="option" style="width: 100%"><div class="submitbutton"><input class="button" type="submit" name="writeMessage" id="postsubmit" value="提 &nbsp; 交"></div></div>
</s:form>
<script type="text/javascript">
function validate(theform) {
if (theform.subject.value == '' || theform.message.value == '') {
alert("请完成标题和内容栏。");
theform.subject.focus();
return false;
} else if (theform.subject.value.length > 75) {
alert("您的标题超过 80 个字符的限制。");
theform.subject.focus();
return false;
}
theform.message.value = parseurl(theform.message.value, 'bbcode');
theform.pmsubmit.disabled = true;
return true;
}
checkFocus();
setCaretAtEnd();
</script></td></tr></table>
<br>
<br>
</div>
</center>